import request from '@/utils/request'

// 查询我的自选列表
export function listOptionalsymbol(query) {
  return request({
    url: '/business/optionalsymbol/list',
    method: 'get',
    params: query
  })
}

// 查询我的自选详细
export function getOptionalsymbol(id) {
  return request({
    url: '/business/optionalsymbol/' + id,
    method: 'get'
  })
}

// 新增我的自选
export function addOptionalsymbol(data) {
  return request({
    url: '/business/optionalsymbol',
    method: 'post',
    data: data
  })
}

// 修改我的自选
export function updateOptionalsymbol(data) {
  return request({
    url: '/business/optionalsymbol',
    method: 'put',
    data: data
  })
}

// 删除我的自选
export function delOptionalsymbol(id) {
  return request({
    url: '/business/optionalsymbol/' + id,
    method: 'delete'
  })
}
